import request from '@/utils/request'
// 获取map数据
export function getEchartsMap() {
  return request({
    url: '/mock/echarts/map',
    method: 'get'
  })
}
// 获取折线图数据
export function getEchartsLine() {
  return request({
    url: '/mock/echarts/line',
    method: 'get'
  })
}
// 获取柱状图数据
export function getEchartsBar() {
  return request({
    url: '/mock/echarts/bar',
    method: 'get'
  })
}
// 获取饼状图数据
export function getEchartsPie() {
  return request({
    url: '/mock/echarts/pie',
    method: 'get'
  })
}
// 获取雷达图数据
export function getEchartsRadar() {
  return request({
    url: '/mock/echarts/radar',
    method: 'get'
  })
}
// 获取标签数据
// export function getTagInfo(id) {
//   return request({
//     url: '/mock/rowInfo?id=' + id,
//     method: 'get'
//   })
// }
// 修改标签
export function editTag(data) {
  return request({
    url: '/mock/update',
    method: 'post',
    data
  })
}
// 删除标签
export function delTag(id) {
  return request({
    url: '/mock/del',
    method: 'get',
    params: { id }
  })
}
